#ifndef _TLPI_H
#define _TLPI_H

#ifndef BUF_SIZE
#define BUF_SIZE 1000
#endif


void errExit(char *);
void fatal(char *);

char *curTime(const char *);


/* file lock */
int lockRegion(int fd, int type, int whence, int start, int len);
int lockRegionWait(int fd, int type, int whence, int start, int len);
pid_t isRegionLockable(int fd, int type, int whence, int start, int len);
#endif
